﻿@using LdCms.EF.DbModels
@using LdCms.Common.Extension
@{
    ViewData["Title"] = "Welcome";
    Layout = "~/Views/Shared/_Layout.cshtml";
}
<nav class="breadcrumb">
    <i class="Hui-iconfont">&#xe67f;</i> 首页 <span class="c-gray en">&gt;</span> 我的桌面
    <a id="btn_refresh" class="btn btn-success radius r" style="line-height:1.6em;margin-top:3px" href="javascript:location.replace(location.href);" title="刷新"><i class="Hui-iconfont">&#xe68f;</i></a>
</nav>

<article class="page-container bg-eee" style="min-height:1110px;">
    <div class="bg-eee">
        <div class="l" style="width:70%; height:260px;">
            <div class="l" style="width:50%; height:260px;">
                <div style="margin-right:10px; background-color:#ffffff; height:260px;">
                    <div class="cl pd-10 bg-fff">
                        <div class="tabBar cl clearfix">
                            <span style="font-weight:normal;">快捷方式</span>
                        </div>
                        <div class="mt-15 pl-10 pr-10">
                            <dl>
                                <dd class="l" style="width:25%; height:94px;">
                                    <a href="javascript:void(0)" data-href="@Url.Action("List","InfoContent")" data-title="资讯管理" onclick="Hui_admin_tab(this)" style="text-decoration: none;">
                                        <div style="height:68px; background-color:#F8F8F8; margin-right:10px;text-align:center;"><i class="Hui-iconfont" style="font-size:42px; line-height:68px; color:#666666;">&#xe616;</i></div>
                                        <div style="height:26px; line-height:26px; text-align:center; margin-right:10px;">资讯管理</div>
                                    </a>
                                </dd>
                                <dd class="l" style="width:25%; height:94px;">
                                    <a href="javascript:void(0)" data-href="@Url.Action("List","GoodsProducts")" data-title="商品管理" onclick="Hui_admin_tab(this)" style="text-decoration: none;">
                                        <div style="height:68px; background-color:#F8F8F8; margin-right:10px;text-align:center;"><i class="Hui-iconfont" style="font-size:42px; line-height:68px; color:#666666;">&#xe620;</i></div>
                                        <div style="height:26px; line-height:26px; text-align:center; margin-right:10px;">商品管理</div>
                                    </a>
                                </dd>
                                <dd class="l" style="width:25%; height:94px;">
                                    <a href="javascript:void(0)" data-href="@Url.Action("List","SellOrder")" data-title="订单管理" onclick="Hui_admin_tab(this)" style="text-decoration: none;">
                                        <div style="height:68px; background-color:#F8F8F8; margin-right:10px;text-align:center;"><i class="Hui-iconfont" style="font-size:42px; line-height:68px; color:#666666;">&#xe687;</i></div>
                                        <div style="height:26px; line-height:26px; text-align:center; margin-right:10px;">订单管理</div>
                                    </a>
                                </dd>
                                <dd class="l" style="width:25%; height:94px;">
                                    <a href="javascript:void(0)" data-href="@Url.Action("Index","StatisticsSellOrder")" data-title="报表管理" onclick="Hui_admin_tab(this)" style="text-decoration: none;">
                                        <div style="height:68px; background-color:#F8F8F8; margin-right:10px;text-align:center;"><i class="Hui-iconfont" style="font-size:42px; line-height:68px; color:#666666;">&#xe61e;</i></div>
                                        <div style="height:26px; line-height:26px; text-align:center; margin-right:10px;">报表管理</div>
                                    </a>
                                </dd>
                                <dd class="l" style="width:25%; height:94px;">
                                    <a href="javascript:void(0)" data-href="@Url.Action("List","MemberAccount")" data-title="会员管理" onclick="Hui_admin_tab(this)" style="text-decoration: none;">
                                        <div style="height:68px; background-color:#F8F8F8; margin-right:10px;text-align:center;"><i class="Hui-iconfont" style="font-size:42px; line-height:68px; color:#666666;">&#xe60d;</i></div>
                                        <div style="height:26px; line-height:26px; text-align:center; margin-right:10px;">会员管理</div>
                                    </a>
                                </dd>
                                <dd class="l" style="width:25%; height:94px;">
                                    <a href="javascript:void(0)" data-href="@Url.Action("List","InstitutionStaff")" data-title="员工管理" onclick="Hui_admin_tab(this)" style="text-decoration: none;">
                                        <div style="height:68px; background-color:#F8F8F8; margin-right:10px;text-align:center;"><i class="Hui-iconfont" style="font-size:42px; line-height:68px; color:#666666;">&#xe62d;</i></div>
                                        <div style="height:26px; line-height:26px; text-align:center; margin-right:10px;">员工管理</div>
                                    </a>
                                </dd>
                                <dd class="l" style="width:25%; height:94px;">
                                    <a href="javascript:void(0)" data-href="@Url.Action("List","SysInterfaceAccount")" data-title="接口管理" onclick="Hui_admin_tab(this)" style="text-decoration: none;">
                                        <div style="height:68px; background-color:#F8F8F8; margin-right:10px;text-align:center;"><i class="Hui-iconfont" style="font-size:42px; line-height:68px; color:#666666;">&#xe6f1;</i></div>
                                        <div style="height:26px; line-height:26px; text-align:center; margin-right:10px;">接口管理</div>
                                    </a>
                                </dd>
                                <dd class="l" style="width:25%; height:94px;">
                                    <a href="javascript:void(0)" data-href="@Url.Action("Index","SysConfig")" data-title="系统设置" onclick="Hui_admin_tab(this)" style="text-decoration: none;">
                                        <div style="height:68px; background-color:#F8F8F8; margin-right:10px;text-align:center;"><i class="Hui-iconfont" style="font-size:42px; line-height:68px; color:#666666;">&#xe62e;</i></div>
                                        <div style="height:26px; line-height:26px; text-align:center; margin-right:10px;">系统设置</div>
                                    </a>
                                </dd>
                            </dl>
                        </div>
                    </div>
                </div>
            </div>
            <div class="l" style="width:50%; height:260px;">
                <div style="margin-left:10px; margin-right:10px; background-color:#ffffff; height:260px;">
                    <div class="cl pd-10 bg-fff">
                        <div class="tabBar cl clearfix">
                            <span style="font-weight:normal;">待办事项</span>
                        </div>
                        <div class="mt-15 pl-10 pr-10">
                            <dl>
                                <dd class="l" style="width:50%; height:89px;">
                                    <a href="javascript:void(0)" data-href="@Url.Action("List","ServiceMessageBoard")" data-title="问题反馈" onclick="Hui_admin_tab(this)" style="text-decoration: none;">
                                        <div style="height:89px; background-color:#F8F8F8; margin-right:5px; text-align:left;">
                                            <div class="pd-10">
                                                <p>问题反馈</p>
                                                <p style="font-size:22px; font-weight:bold; color:#0c862d">666</p>
                                            </div>
                                        </div>
                                    </a>
                                </dd>
                                <dd class="l" style="width:50%; height:89px;">
                                    <a href="javascript:void(0)" data-href="@Url.Action("List", "CommunityThemeReply")" data-title="待审贴子" onclick="Hui_admin_tab(this)" style="text-decoration: none;">
                                        <div style="height:89px; background-color:#F8F8F8; margin-left:5px; text-align:left;">
                                            <div class="pd-10">
                                                <p>待审贴子</p>
                                                <p style="font-size:22px; font-weight:bold; color:#0c862d">666</p>
                                            </div>
                                        </div>
                                    </a>
                                </dd>
                                <dd class="l" style="width:50%; height:94px;">
                                    <a href="javascript:void(0)" data-href="@Url.Action("List", "SellOrder")" data-title="待处理订单" onclick="Hui_admin_tab(this)" style="text-decoration: none;">
                                        <div style="height:89px; background-color:#F8F8F8; margin-right:5px; margin-top:10px; text-align:left;">
                                            <div class="pd-10">
                                                <p>待处理订单</p>
                                                <p style="font-size:22px; font-weight:bold; color:#0c862d">666</p>
                                            </div>
                                        </div>
                                    </a>
                                </dd>
                                <dd class="l" style="width:50%; height:94px;">
                                    <a href="javascript:void(0)" data-href="@Url.Action("List", "SellOrderInvoice")" data-title="待处理发票" onclick="Hui_admin_tab(this)" style="text-decoration: none;">
                                        <div style="height:89px; background-color:#F8F8F8; margin-left:5px;margin-top:10px; text-align:left;">
                                            <div class="pd-10">
                                                <p>待处理发票</p>
                                                <p style="font-size:22px; font-weight:bold; color:#0c862d">666</p>
                                            </div>
                                        </div>
                                    </a>
                                </dd>
                            </dl>
                        </div>
                    </div>
                </div>
            </div>
            <div style="clear:both;"></div>
            <div style="width:100%; height:405px; margin-top:20px;">
                <div style="margin-right:10px; background-color:#ffffff;height:405px;">
                    <div class="cl pd-10 bg-fff">
                        <div class="tabBar cl clearfix">
                            <span style="font-weight:normal;">数据概览</span>
                        </div>
                        <div class="mt-15 pl-10 pr-10">
                            <div id="container" style="height: 330px"></div>
                        </div>
                    </div>
                </div>
            </div>
            <div style="width:100%; height:405px; margin-top:20px;">
                <div style="margin-right:10px; background-color:#ffffff;height:405px;">
                    <div class="cl pd-10 bg-fff">
                        <div class="tabBar cl clearfix">
                            <span style="font-weight:normal;">官方公告</span>
                        </div>
                        <div class="mt-15  pl-10 pr-10">
                            <table class="table table-border table-bordered table-hover table-bg table-sort">
                                <thead>
                                    <tr class="text-c">
                                        <th width="" class="text-l">标题</th>
                                        <th width="120">时间</th>
                                    </tr>
                                </thead>
                                <tbody>
                                    @{
                                        var InfoNotice = ViewBag.InfoNotice as List<Ld_Info_Notice>;
                                        if (InfoNotice != null)
                                        {
                                            if (InfoNotice.Count > 0)
                                            {
                                                foreach (var m in InfoNotice)
                                                {
                                                    <tr class="text-c">
                                                        <td class="text-l">@m.Title.Left(70) ...</td>
                                                        <td>@(m.CreateDate.HasValue ? m.CreateDate.Value.ToString("yyyy-MM-dd HH:mm") : "-")</td>
                                                    </tr>
                                                }
                                            }
                                            else
                                            {
                                                <tr class="text-c">
                                                    <td colspan="2">暂无数据</td>
                                                </tr>
                                            }
                                        }
                                    }
                                </tbody>
                            </table>
                        </div>
                    </div>
                </div>
            </div>
        </div>

        <div class="l" style="width:30%; height:260px;">
            <div>
                <div style="margin-left:10px; background-color:#ffffff; height:260px;">
                    <div class="cl pd-10 bg-fff">
                        <div class="tabBar cl clearfix">
                            <span style="font-weight:normal;">版本信息</span>
                        </div>
                        <div class="mt-15 pl-10 pr-10">
                            <table class="table table-border table-bordered table-hover table-bg table-sort">
                                <tbody>
                                    <tr class="text-c">
                                        <td width="80">产品名称</td>
                                        <td class="text-l">LdCms.NetCore</td>
                                    </tr>
                                    <tr class="text-c">
                                        <td>当前版本</td>
                                        <td class="text-l">V2.0.0　<a href="https://www.ldcms.net/wiki/index.html" target="_blank" style="color:blue;">更新日志</a></td>
                                    </tr>
                                    <tr class="text-c">
                                        <td>官方网站</td>
                                        <td class="text-l">https://www.ldcms.net</td>
                                    </tr>
                                    <tr class="text-c">
                                        <td>开发作者</td>
                                        <td class="text-l">小草　QQ交流群：<span style="font-weight:bold; color:red;">672575385</span></td>
                                    </tr>
                                    <tr class="text-c">
                                        <td>获取渠道</td>
                                        <td class="text-l">
                                            <a href="http://core.ldcms.net/admin" target="_blank" style="color:blue;">在线演示</a>　
                                            <a href="https://gitee.com/6666298/LdCmsNetCore" target="_blank" style="color:blue;">立即下载</a>
                                        </td>
                                    </tr>
                                </tbody>
                            </table>
                        </div>
                    </div>
                </div>
            </div>
            <div style="margin-top:20px;">
                <div style="margin-left:10px; background-color:#ffffff; height:405px;">
                    <div class="cl pd-10 bg-fff">
                        <div class="tabBar cl clearfix">
                            <span style="font-weight:normal;">服务器信息</span>
                        </div>
                        <div class="mt-15  pl-10 pr-10">
                            <table class="table table-border table-bordered table-hover table-bg table-sort">
                                <tbody>
                                    <tr class="text-c">
                                        <td class="text-l" width="120">服务器计算机名</td>
                                        <td class="text-l">@ViewBag.ServerMachineName</td>
                                    </tr>
                                    <tr class="text-c">
                                        <td class="text-l">服务器IP地址</td>
                                        <td class="text-l">@ViewBag.ServerIpAddress</td>
                                    </tr>
                                    <tr class="text-c">
                                        <td class="text-l">服务器域名</td>
                                        <td class="text-l">@ViewBag.HttpWebHost</td>
                                    </tr>
                                    <tr class="text-c">
                                        <td class="text-l">服务器端口</td>
                                        <td class="text-l">@(string.IsNullOrWhiteSpace(ViewBag.HttpWebPort)? "80" : ViewBag.HttpWebPort)</td>
                                    </tr>
                                    <tr class="text-c">
                                        <td class="text-l">服务器操作系统版本</td>
                                        <td class="text-l">@ViewBag.SystemVersion</td>
                                    </tr>
                                    <tr class="text-c">
                                        <td class="text-l">服务器NetCore版本</td>
                                        <td class="text-l">.Net Core @(string.Format("V{0}", ViewBag.NetCoreVersion))</td>
                                    </tr>
                                    <tr class="text-c">
                                        <td class="text-l">服务器当前时间</td>
                                        <td class="text-l">@DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss")</td>
                                    </tr>
                                    <tr class="text-c">
                                        <td class="text-l">当前系统公司名</td>
                                        <td class="text-l">@ViewBag.CompanyName</td>
                                    </tr>
                                    <tr class="text-c">
                                        <td class="text-l">当前系统用户名</td>
                                        <td class="text-l">@ViewBag.StaffName</td>
                                    </tr>
                                </tbody>
                            </table>
                        </div>
                    </div>
                </div>
            </div>
            <div style="margin-top:20px;">
                <div style="margin-left:10px; background-color:#ffffff; height:405px;">
                    <div class="cl pd-10 bg-fff">
                        <div class="tabBar cl clearfix">
                            <span style="font-weight:normal;">系统日志</span>
                        </div>
                        <div class="mt-15  pl-10 pr-10">
                            <table class="table table-border table-bordered table-hover table-bg table-sort">
                                <thead>
                                    <tr class="text-c">
                                        <th width="80">帐号</th>
                                        <th width="">描述</th>
                                        <th width="120">时间</th>
                                    </tr>
                                </thead>
                                <tbody>
                                    @{
                                        var loginRecord = ViewBag.LoginRecord as List<Ld_Log_LoginRecord>;
                                        if (loginRecord != null)
                                        {
                                            foreach (var m in loginRecord)
                                            {
                                                <tr class="text-c">
                                                    <td>@m.Account</td>
                                                    <td class="text-l">@m.Description - @(m.IsResult.ToBool() ? "成功！" : "失败！")</td>
                                                    <td>@(m.CreateDate.HasValue ? m.CreateDate.Value.ToString("yyyy-MM-dd HH:mm") : "-")</td>
                                                </tr>
                                            }
                                        }
                                    }

                                </tbody>
                            </table>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</article>
@*
    --------------
    页面底部JS脚本
    --------------
*@
@section scripts{
    <!--请在下方写此页面业务相关的脚本-->
    <script type="text/javascript" src="~/admin/lib/My97DatePicker/4.8/WdatePicker.js"></script>
    <script type="text/javascript" src="~/admin/lib/jquery.validation/1.14.0/jquery.validate.js"></script>
    <script type="text/javascript" src="~/admin/lib/jquery.validation/1.14.0/validate-methods.js"></script>
    <script type="text/javascript" src="~/admin/lib/jquery.validation/1.14.0/messages_zh.js"></script>
    <script type="text/javascript" src="~/admin/lib/echarts/3.4.0/echarts.common.min.js"></script>
    <script type="text/javascript" src="~/admin/static/h-ui.admin/js/H-ui.admin.common.js"></script>
    <script type="text/javascript">
        (function ($) {
            $.mainu = {
                init: function () {
                    $.mainu.getd();
                },
                getd: function () {
                    var dom = document.getElementById("container");
                    var myChart = echarts.init(dom);
                    var app = {};
                    option = null;
                    app.title = '坐标轴刻度与标签对齐';

                    option = {
                        color: ['#3398DB'],
                        tooltip: {
                            trigger: 'axis',
                            axisPointer: {            // 坐标轴指示器，坐标轴触发有效
                                type: 'shadow'        // 默认为直线，可选为：'line' | 'shadow'
                            }
                        },
                        grid: {
                            left: '3%',
                            right: '4%',
                            bottom: '3%',
                            containLabel: true
                        },
                        xAxis: [
                            {
                                type: 'category',
                                data: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun'],
                                axisTick: {
                                    alignWithLabel: true
                                }
                            }
                        ],
                        yAxis: [
                            {
                                type: 'value'
                            }
                        ],
                        series: [
                            {
                                name: '直接访问',
                                type: 'bar',
                                barWidth: '60%',
                                data: [10, 52, 200, 334, 390, 330, 220]
                            }
                        ]
                    };
                    ;
                    if (option && typeof option === "object") {
                        myChart.setOption(option, true);
                    }
                }
            };
            $(function () {
                $.mainu.init();
            });

        })(jQuery);
    </script>
}

